<?php

namespace Application\Services;

use BlogServices\CategoryServiceIf;

class CategoryService extends BaseService implements CategoryServiceIf
{
    /**
     * 定义服务名称
     * @return string
     */
    public function setServiceName()
    {
        return "CategoryService";
    }

    /**
     * @param $where string 条件
     * @param $offset integer 偏移量
     * @param $limit integer 读取条数
     * @return []BlogServices\Article\Article
     */
    public function GetCategorys()
    {
        return $this->service->GetCategorys();
    }

    /**
     * @param int $id
     * @return \BlogServices\Category
     */
    public function GetCategoryInfoById($id)
    {
        return $this->service->GetCategoryInfoById($id);
    }
}